package com.jeeplus.modules.statistics.mapper;

import com.jeeplus.modules.statistics.model.domain.BusinessTrends;
import com.jeeplus.modules.statistics.model.query.HomeStatisticsQuery;
import com.jeeplus.modules.statistics.model.query.StatisticsQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 业务办理趋势
 *
 * @author hanKongBin
 * @version 1.0
 * @date 2021/2/28 14:32
 */
@Mapper
@Repository
public interface BusinessTrendsMapper {

    /**
     * 业务办理趋势统计查询
     *
     * @param query
     * @return
     */
    List<BusinessTrends> statistics(StatisticsQuery query);

    /**
     * 获取时间轴
     *
     * @param query
     * @return
     */
    List<String> selectTimes(StatisticsQuery query);


    /**
     * 主页-办理时间趋势统计查询
     *
     * @param params
     * @return
     */
    List<BusinessTrends> serverTimesTrends(HomeStatisticsQuery params);
}
